extends Node2D

class_name TimeLord

var listening = true


func ignore_input_for(time):
	print ("sleepy time")
	listening = false
	execute_after(time,"wake_up")

func execute_after(time, action, arg = null):
	var timer = SDTimer.new(self,action, arg)
	timer.wait_time = time
	add_child(timer)
	timer.start()


func wake_up():
	print ("waking up")
	listening = true
